package cv.vender;

/**
 * @author Administrator
 * 售货机
 */
public class clsCmdConst {
	/**
	 * 错误命令代码(有使用)
	 */
	public static final int CMD_PC_MES_ERR              =-1;
	/**
	 * 握手命令(有使用)
	 */
	public static final int CMD_PC_LNK                  =0X01;
	/**
	 * 查询主板状态命令(有使用)
	 */
	public static final int CMD_PC_POLL                 =0X02;

	/**
	 * //保存交易序号，保存起始交易时间和最后交易时间，保存交易总笔数，现金笔数，微信笔数
	 */
	public static final int CMD_PC_SAVE_TRADE_MSG      =0x32;

	/**
	 * //加载交易序号，加载起始交易时间和最后交易时间，加载交易总笔数，现金笔数，微信笔数
	 */
	public static final int CMD_PC_LOAD_TRADE_MSG       =0x33;
	/**
	 * 上位机通知下位机出货
	 */
	public static final int CMD_PC_TRANSFOR             =0x34;
	/**
	 * 查询出货状态
	 */
	public static final int CMD_PC_POLL_TRANSFOR 		=0x35;

	/**
	 *
	 */
	public static final int CMD_PC_TRANSFOR_COMPLETE 		=0x36;
	/**
	 * 获取投入金额
	 */
	public static final int CMD_PC_CREDIT           	=0X11;
	/**
	 * 上位机得到下位机交易传递通知时，从下位机货取最近一次的交易信息(有使用)
	 */
	public static final int CMD_PC_MDB_CLEAR_CREDIT     =0X19;
	/**
	 * 上位机减掉下位机中的部分金额
	 */
	public static final int CMD_PC_MDB_SUB_CREDIT     =0X1a;

	/**
	 * 读取电子秤的ADC值
	 */
	public static final int CMD_PC_READ_ADC         	=0x50;
	/**
	 * 设置校正参数
	 */
	public static final int CMD_PC_SET_CALIBRATION          =0X51;
	/**
	 * 获取校正参数
	 */
	public static final int CMD_PC_GET_CALIBRATION        =0X52;
	/**
	 * 设置继电器
	 */
	public static final int CMD_PC_RELAY_TEST      		=0X53;
	/**
	 * 设置允许接收的现金
	 */
	public static final int CMD_PC_SET_BILL_TYPE         =0x54;

	/**
	 * 读取实际称量
	 */
	public static final int CMD_PC_GET_WEIGHT         =0x55;

	/**
	 * 读取实际称量去皮
	 */
	public static final int CMD_PC_GET_GROSS         =0x56;

	/**
	 * 读取卡片序列号
	 */
	public static final int CMD_PC_GET_CARDSN         =0x57;

	/**
	 * 设备启动
	 */
	public static final int CMD_START_OK    	     =0x83;
	/**
	 *打开串口
	 */
	public static final int CMD_OPEN_SERIAL_PORT     =0x84;
	public static final int CMD_PC_TELL_NET_BREAK = 0x85;


	public static final int CMD_HTTP_POLL_TRADE = 0x90;
	public static final int CMD_HTTP_FRESH_QRCODE = 0x91;
	public static final int CMD_HTTP_GOODS_INFO = 0x92;
	public static final int CMD_HTTP_HEART_DATA_PARSE =0x93;
	public static final int CMD_HTTP_SEND_HEART_FRAME =0x94;
	public static final int CMD_HTTP_SWIPE_DATA_PARSE =0x95;
	public static final int CMD_HTTP_PUSH_SLOT_PARA =0x96;

	public static final int ONE_SEC_TICK = 0x1000;

	public static final int CMD_START_TRNSFOR = 0x1001;

	public static final int CMD_START_CREDTI_POLL = 0x1002;
	public static final int CMD_START_READ_CARD_POLL =0x1003 ;

	public static final int CMD_PRINT_TRADE = 0x1004;
	public static final int CMD_POLL_PRINTER = 0x1005;
	public static final int CMD_REPORT_PRINT_ERR = 0x1006;
	public static final int CMD_PRINT_STATISTIC = 0x1007;

	/**
     * Created by Administrator on 2017-01-05.
     */

    public static class clsTradeConst {
    }


}
